package com.jic.member.mapper;

import java.lang.Long;
import java.util.List;

import com.jic.member.entity.MememberLabel;
import com.jic.member.request.LabelRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 会员标签关联表
 *
 * @author :
 * @version : v1.0.0
 * @email :
 * @since : 2020-05-21 02:05:08
 */
@Mapper
public interface MememberLabelMapper {

    long insert(MememberLabel mememberLabel);

    long delete(Long id);

    long update(MememberLabel mememberLabel);

    MememberLabel queryByPrimaryKey(Long id);

    List<MememberLabel> query(MememberLabel mememberLabel);

    List<MememberLabel> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("mememberLabel") MememberLabel mememberLabel);

    long queryPageCount(MememberLabel mememberLabel);

    void deleteLabel(@Param("memberId") Long memberId, @Param("deptId") Long deptId);

    /**
     * 查询自定义会员列表
     *
     * @param labelRequest
     * @return
     */
    List<String> queryMemberLabelByEnumsIds(LabelRequest labelRequest);

}
